<?php
/**
 * Medical Center Header Block
 *
 * @author Xavier VILAIN
 * @package Nawa\MedicalCenter
 * @license
 */
use Fox\Dao\SqlFragment;
use Nawa\MedicalCenter\Type;
use Fox\Html\DropList;
use Fox\Html\Input;
use Fox\Msg;
use Fox\Html\Block;

$finder = new Type();
$types = $finder->find(new SqlFragment("language = ?",array(Xview::instance()->language())));

$block = new Block("bHeader",Msg(Msg::BUNDLE,Msg::TITLE_MASTER_DATA));
$block->add(new Input('name1',true));
$block->add(new Input(array('mc_reference_intern','reference'),false));
$block->add(new DropList(array('mc_type','type'),true,false,true))
->options($types,'type','label');

return $block;